package com.ts.util.transaction;

import org.hibernate.Session;

import com.ts.common.util.HibernateSessionFactory;


public class HibernateTransaction implements Transaction {
	
	private org.hibernate.Transaction transaction;
	
	public void commit() {
		transaction.commit();
	}

	public void rollback() {
		transaction.rollback();
	}

	public void begin() {
		Session session = HibernateSessionFactory.getSession();
		transaction = session.beginTransaction();
	}
	
}